package com.biqee.exception;

public enum ErrorCode {

	System_001("系统错误"),
	BIZ_TUAN_001("团购对象不存在"),
	BIZ_TUAN_002("搜索关键字不能为空"),
	JUHUASUAN_URL_ERROR("聚划算URL错误"),
	JUHUASUAN_PARSE_ERROR("聚划算解析错误"),
	ADMIN_TUAN_001("参数错误，需要团购url"),
	INDEX_FETCH_001("html 抓取失败"),
	INDEX_FETCH_002("html 存储失败"),
	INDEX_FETCH_003("备份失败"),
	
	;
	
	private String message;

	ErrorCode( String message) {
		this.message = message;
	}
	public String getMessage() {
		return message;
	}
	
	public String getCode(){
		return this.name();
	}


	public void setMessage(String message) {
		this.message = message;
	}


	public String toString() {
		return "errorCode:"+getCode() + "||errorMessage:" + this.message;
	}

	

}
